You attach behaviors to sprites by dragging them from the cast to a sprite.